const mongoose = require('mongoose')

let applyschema = new mongoose.Schema({
    qrcode:{
        type:String,

    },
    uid:{
        type: mongoose.Schema.Types.ObjectId,
        ref: 'usermodel',
    },
    avatar:String,
    name:{
        type:String,
        require:true,
    },
    gender:Number,
    college:Number,
    major:{
        type:String,
        require:true,
    },
    number:{
        type:String,
        require:true,
    },
    first:Number,
    second:Number,
    way:String,
    remark:String,
    one:String,
    two:String,
    three:String,
})

let applymodel = mongoose.model('apply', applyschema)

module.exports = applymodel